home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
macros
/
latex209
/
contrib
/
tesla
/
goldirules.tex
< prev
next >
Wrap
Text File
|
1994-08-09
|
1KB
|
35 lines
;
; goldilocks.tex
;
;
; This is the Goldilocks example that uses the TeSLa package that is the
; subject of the paper entitled "An Example Special Purpose Input Language
; to LaTeX" that was (will be) presented to the TUG94 conference in
; Santa Barabara.
;
; Please see goldilocks.tex and tesla.sty for more details.
; =========================================================
;
;
; Define the Knowledge Base variables to be documented
;
[tvar | min | the minimum acceptable temperature ]
[tvar | max | the maximum acceptable temperature ]
[tvar | T | the temperature ]
[tvar | too-cold | the porridge is too cold ]
[tvar | too-hot | the porridge is too hot ]
[tvar | just-right | the porridge is just right ]
;
; Now document the rules
;
[tgroup | Goldilocks' | 2 ]
[ttext | These are the rules that model Goldilocks' decision process. ]
[trule | T < min | | too-cold _ _ ]
[trule | _ | T > max | too-hot _ _ ]
[trule | min <= T | T <= max | just-right _ _ ]
[tgroup | Goldilocks' | e ]